// 常用常量定义
const currentVersion = 'bangzy'; //'lizy','yuanzy', ‘huibao’, ‘zywang’, 'chuangjingzy','huigaokao'，'farcoach','ddsx','zwzyt',‘bangzy'','dingzy','yuanzyai','honghua'
const environment = 'release'; //test , release
const version = 3141;
//[0会员中心,1直播,2优惠券,3教育资讯推荐]
const subscribe = {
	lizy: ['G_D1B0Aegvqs3r4roHIfpGT3SXNQB3As9JbXWPaGrtQ','G4H5AYs7Tvy7hWJ7RaO3O9qiy7nSO0F7YmHFT-78tBg','rJ1D48-CEIW7lOEWz2E_xhCS0uuT-YfE2kD54XYh6BA','-pDdtg8mVIUQXOFRrzquz3RLEt-G1FWrxOipn3JIhT8'],
	yuanzy: ['SEeJv90-ySimxVLGBC2qGD4YGQjGq-egis9uKFsf6Ig','yYNrdxv4082ERaw7_H_Iey07bqamUvTUwStwchCFvvc','CTA0HBaqPXIy7OYL2xWXzqXZBedgJu4smmdDET7xSMU','59czVNpBq8uUFNvxKb4hbM_mOdjQ7Q3P59exCBUdyKU'],
	zywang: ['d9hw-aMkFYKojpQsa2E3VIpKGIB4UL3anL5kJBn-s8A','TEO3vCcSFimQbZX5rXM0kDNS0OPaUOoq_t_YXqny3nE','YnYsbOf0nQA7W8CJ3TRv5gMn1FvP9ER__y8Oz071B_4','lMcYiebyKVebDF_q-2rgdz601l39riDduwkgb0eHMbE'],
	chuangjingzy: [],
	huigaokao: [],
	farcoach: [],
	ddsx: [],
	zwzyt: [],
	bangzy:[],
	dingzy:[],
	yuanzyai:[],
	honghua:[],
}; 
let ENV = {
	status: {
		enable: 1, // 启用
		disable: 0, // 停用
	},
	city :{
		size: 0, 
		xiamen: 11,
		fuzhou:22
	},
	province:{
		id: 35,
		name: '福建',
		exam_year: ''
	},
	uploadSize : 1024 * 1024 * 100, // 上传文件的大小限制100m
	debug : false,
	title: '立志愿',
	slogan: '立志愿，成就伟大的你',
	enTitle: currentVersion,
	version,
	corpId: 'wwa959038fc8c4dda5', //时元：wwa959038fc8c4dda5   ， 云心：ww01bf03b787bd731c
	v3AppKey: 'AGpzumRHUEVokOht2t44cOEozsvQs6Jx', 
	agencyServer: 'kfc63a16a937b9d1232',
	environment: environment,
	finderId: 'sphWQmAtYDUQbzT',
	templateIds: {
		lizy: {
			init: subscribe[currentVersion].slice(0,3),
			common: [...subscribe[currentVersion].slice(0,2),subscribe[currentVersion][3]],
			member: subscribe[currentVersion].slice(0,3), //会员中心相关
			classroom: [subscribe[currentVersion][1],subscribe[currentVersion][0],subscribe[currentVersion][3]],//直播
			studentInfo: subscribe[currentVersion].slice(0,3), //完善学生高考信息 ['个人信息变更提醒']
			coupon: ['vUD_QPBQjRdDdec6f_Uv5wj1ruJrLfMSV5RZgdXoxlc',subscribe[currentVersion][2],subscribe[currentVersion][0]], //优惠券过期，优惠券发放，
			group: ['-qYkW5nY9DskOlmFRUVr3-GLibBvKR8pSASJ0Cu7F0w', subscribe[currentVersion][0],subscribe[currentVersion][3]], //拼团结果，
		},
		yuanzy:{
			init: subscribe[currentVersion].slice(0,3),
			common: [...subscribe[currentVersion].slice(0,2),subscribe[currentVersion][3]],
			member: subscribe[currentVersion].slice(0,3), //会员中心相关
			classroom: [subscribe[currentVersion][1],subscribe[currentVersion][0],subscribe[currentVersion][3]],//直播
			studentInfo: subscribe[currentVersion].slice(0,3), //完善学生高考信息 ['个人信息变更提醒']
			coupon: ['TDwD7KIYc6_ATSMf8K3WR7JtvDugHr2Atz4CNn6U880',subscribe[currentVersion][2],subscribe[currentVersion][0]], //优惠券过期，优惠券发放，
			group: ['8aBAAyiJuZRkB4-RLwgS-T8EHckk6WlvcXmIWqjBcoc', subscribe[currentVersion][0],subscribe[currentVersion][3]], //拼团结果，
		},
		zywang: {
			init: subscribe[currentVersion].slice(0,3),
			common: [...subscribe[currentVersion].slice(0,2),subscribe[currentVersion][3]],
			member: subscribe[currentVersion].slice(0,3), //会员中心相关
			classroom: [subscribe[currentVersion][1],subscribe[currentVersion][0],subscribe[currentVersion][3]],//直播
			studentInfo: subscribe[currentVersion].slice(0,3), //完善学生高考信息 ['个人信息变更提醒']
			coupon: ['0v0rfWxwAmhT4Xny9uabkEjb9-t70qiLICSRoOyJI3k',subscribe[currentVersion][2],subscribe[currentVersion][0]], //优惠券过期，优惠券发放，
			group: ['DraE8fscls0SalMmzQ4VFSSKz2Zg6sCEUf3oEzYc4IE', subscribe[currentVersion][0],subscribe[currentVersion][3]], //拼团结果，
		},
	}
}
for(let key in subscribe) {
	if(subscribe[key].length === 0) {
		ENV.templateIds[key] = {
			init: [],
			common: [],
			member: [], //会员中心相关
			classroom: [],//直播
			studentInfo: [], //完善学生高考信息 ['个人信息变更提醒']
			coupon: [], //优惠券过期，优惠券发放，
			group: [], //拼团结果，
		}
	}
}
if(currentVersion === 'yuanzy') {
	Object.assign(ENV, {
		title: '元志愿',
		slogan: '元志愿，好志愿赢人生',
		version,
		finderId: '',
	})
} else if(currentVersion === 'huibao') {
	Object.assign(ENV, {
		title: '荟豹志愿',
		version,
		finderId: '',
	})
} else if(currentVersion === 'zywang') {
	Object.assign(ENV, {
		title: '志愿王',
		slogan: '志愿王，赢王者人生',
		version,
		corpId: 'ww6c983b6dbebab5e4',
		agencyServer: 'kfcc0998b723773554d',
		finderId: '',
	})
} else if(currentVersion === 'chuangjingzy') {
	Object.assign(ENV, {
		title: '创景志愿',
		slogan: '创景志愿',
		version,
		corpId: '',
		agencyServer: '',
		finderId: '',
	})
} else if(currentVersion === 'huigaokao') {
	Object.assign(ENV, {
		title: '慧高考',
		slogan: '慧高考',
		version,
		corpId: '',
		agencyServer: '',
	})
} else if(currentVersion === 'farcoach') {
	Object.assign(ENV, {
		title: '搞定志愿',
		slogan: '搞定志愿',
		version,
		corpId: '',
		agencyServer: '',
	})
} else if(currentVersion === 'ddsx') {
	Object.assign(ENV, {
		title: '八闽志愿导航',
		slogan: '八闽志愿导航',
		version,
		corpId: '',
		agencyServer: '',
	})
} else if(currentVersion === 'zwzyt') {
	Object.assign(ENV, {
		title: '中皖志愿通',
		slogan: '中皖志愿通',
		version,
		corpId: '',
		agencyServer: '',
	})
} else if(currentVersion === 'bangzy') {
	Object.assign(ENV, {
		title: '帮志愿',
		slogan: '帮志愿',
		version,
		corpId: '',
		agencyServer: '',
	})
}  else if(currentVersion === 'dingzy') {
	Object.assign(ENV, {
		title: '定志愿',
		slogan: '定志愿',
		version,
		corpId: 'ww552fec549a0d056c',
		agencyServer: 'kfcefa3b9512a3990e9',
	})
}  else if(currentVersion === 'yuanzyai') {
	Object.assign(ENV, {
		title: '圆志愿',
		slogan: '圆志愿',
		version,
		corpId: 'wwc6072186694247cd',
		agencyServer: 'kfcc8d23f91ef7f384d',
	})
}  else if(currentVersion === 'honghua') {
	Object.assign(ENV, {
		title: '优学未来',
		slogan: '优学未来',
		version,
		corpId: 'wx4af87b484cda09df',
		agencyServer: '',
	})
} 
if(environment === 'test') {
	Object.assign(ENV, {
		version : version,
	})
	ENV.templateIds[currentVersion]= {
		init: [],
		common: [],
		member: [], 
		classroom: [],
		studentInfo: [], 
		coupon: [],
		group: [],
	}
}
export default ENV